<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = true;
include $this->admin_tpl('header');
?>
<script type="text/javascript">
<!--
$(function(){
	
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#name").formValidator({onshow:"请输入名称",onfocus:"名称不能为空"}).inputValidator({min:1,max:30,onerror:"名称不能为空"});
	$("#code").formValidator({onshow:"请输入目录",onfocus:"目录不能为空"})
		.inputValidator({min:1,max:30,onerror:"目录不能为空"})
		.regexValidator({regexp:"^[A-Za-z0-9_]+$",onerror:"目录只能为字母和数字"});			
})
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="?m=<?=ROUTE_M;?>&c=<?=ROUTE_C;?>&a=edit" method="post" id="myform">
<input type="hidden" name="id" value="<?php echo $id?>"></input>
<table width="100%" class="table_form contentWrap">
<tr>
<td  width="80">名称</td> 
<td><input type="text" name="info[name]" value="<?php echo $name?>" class="input-text" id="name"></input></td>
</tr> 
<tr>
  <td>目录</td> 
  <td><input type="text" name="info[code]" readonly value="<?php echo $code?>" class="input-text" id="code"></input></td>
</tr>

<tr>
  <td>备注</td> 
  <td><input type="text" name="info[memo]" id="extention" class="input-text" size="20" value="<?php echo $memo?>"></input></td>
</tr> 


 
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
</form>

</div></div>
</body>
</html>



